import Router from 'koa-router';
import routerConfig from './router.config';

const routers=new Router();

routerConfig.forEach(item=>{
    routers[item.method](item.url,...item.callback)
});

export default routers;